import 'package:flutter/material.dart';
import 'package:flutter_study/mvvm/model/storymodel.dart';
import 'package:json_annotation/json_annotation.dart';

part 'storymodellist.g.dart';

@JsonSerializable(nullable: false)
class StoryListModel {
  final List<StoryModel> stories;

  StoryListModel(this.stories);

  factory StoryListModel.fromJson(Map<String, dynamic> json) =>
      _$StoryListModelFromJson(json);

  Map<String, dynamic> toJson() => _$StoryListModelToJson(this);
}
